package icegps.com.pingdj.map.bean;

import android.graphics.PointF;
import android.support.annotation.NonNull;

public class MapText implements Comparable<MapText>{
    public int x;
    public int y;
    public String text;
    public int lentgth;

    public MapText(int x, int y, String text, int lentgth) {
        this.x = x;
        this.y = y;
        this.text = text;
        this.lentgth = lentgth;
    }

    @Override
    public boolean equals(Object obj) {
        MapText mapText = (MapText) obj;
        return mapText.x == x && mapText.y == y;
    }


    @Override
    public int compareTo(@NonNull MapText o) {
        if (o.x==x&&o.y==y) {
            return 0;
        }
        return 1;
    }
}
